﻿package com.jxl.dnd.combat.actions
{
	public class CastSpell extends Action
	{
		private var spellName:String;
		private var caster:Object;
		private var target_array:Array;
		
		public function Attack(p_receiver, p_spellName:String, p_caster:Object, pTarget_array:Array):void
		{
			super(p_receiver);
			spellName = 			p_spellName;
			caster =				p_caster;
			target_array = 			pTarget_array;
		}
		
		public function execute():void
		{
			receiver.castSpell(spellName, caster, target_array);
		}
	}
}